package vg.services.plugin_manager.event_and_request.event;

import vg.services.graph_view_manager.interfaces.tab.ATab;

/**
 * This event report decoders and all her components
 * about changing of view.
 * @author tzolotuhin
 */
public class UIEventChangeTab extends AUIEvent {
	private final ATab tab; // tab
	private final int tabId; // tab id
	
	/**
	 * Default constructor.
	 * @param view - view of tab.
	 */
	public UIEventChangeTab(int tabId, ATab tab) {
		super(EUIEventType.DEF_CHANGE_TAB);
		this.tab = tab;
		this.tabId = tabId;
	}
	
	public ATab getTab() {
		return tab;
	}
	
	public int getTabId() {
		return tabId;
	}
}
